import { gql } from "@apollo/client";

export const getCrouseInfo_service = gql`
  query getCourseInfo($id: String!) {
    getCourseInfo(id: $id) {
      message
      data {
        id
        name
        desc
        group
        baseAbility
        limitNumber
        duration
        reserveInfo
        refundInfo
        otherInfo
        reducibleTime {
          orderTime {
            startTime
            endTime
            key
          }
          week
        }
      }
    }
  }
`;

export const getCanReserveCourse_service = gql`
  query {
    getCanReserveCourse {
      data
      code
    }
  }
`;

export const getCrouseInfo_service_simple = gql`
  query getCourseInfo($id: String!) {
    getCourseInfo(id: $id) {
      data {
        id
        name
        desc
      }
    }
  }
`;
